import { App } from 'vue'
import { api } from './api'
import Modal from './Modal'

export function install(app: App, options: Record<string, any> = {}): void {
	app.config.globalProperties.$modal = api(options)
	app.component('modal', Modal)
}
